Repository navigation
Update dependency rules_python to v2.5.1 - #68
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
November 12, 2026 16:45
ed20cfb to
d9048fb
Compare
renovate
Bot
force-pushed
the
renovate/rules_python-2.x
branch
from
November 13, 2026 22:58
d9048fb to
638e499
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.4.5→2.5.1Release Notes
bazel-contrib/rules_python (rules_python)
v2.5.1Compare Source
{#v2-5-1-fixed}
Fixed
stampattribute no longer transitions the{flag}
--stampflag for the whole target, so dependencies of executables withstamp = 0orstamp = 1are no longer built in a separate configuration.{#v2-5-0}
v2.5.0Compare Source
{#v2-5-0-changed}
Changed
smacker/go-tree-sitterto theofficial
tree-sitter/go-tree-sitterandtree-sitter/tree-sitter-pythonpackages, adding support for Python 3.14 PEP 758 unparenthesized exception
clauses (#3416).
archive can be fetched independently. The existing
whlandwhl_filetargetsfetch the archive from a separate repository on demand. Matching patches are
applied in the separate wheel-file repository, which also supplies the patched
archive for extraction. Wheels built from source retain their existing archive
behavior.
py_console_script_binarynow creates the main script only for theexecconfiguration.
install_only_strippedpython-build-standalone runtimearchives for releases from
20240726onward. They can be used by setting{obj}
--@rules_python//python/config_settings:py_pbs_distributiontoinstall_only_strippedto reduce runtime download size.(#4163)
$HOME/.cache(
LOCALAPPDATAon Windows) instead of a temporary directory whenXDG_CACHE_HOMEis unset(#4198).
uvversion has been bumped from0.11.2to0.13.1. Thislets the {obj}
lockrule use scopedoverride-dependenciesfrom apyproject.tomlin[tool.uv], which requireuv0.11.25or newer.(#2992)
{#v2-5-0-fixed}
Fixed
uv) Support executable wrappers with multiple outputs and preserve theirrunfiles in lock actions and runnable targets. Export downloaded
uvbinariesso wrappers can declare them as dependencies.
(#4181)
built-in
MINOR_MAPPINGin the {obj}pythonand {obj}pipextensions,including
add_runtime_manifest_filesdownload URLs and host interpreterresolution (#4358).
stdlib_list/default.txt)alongside the Bazel-selected list (
stdlib_list/selected.txt) sogithub.com/bazel-contrib/rules_python/gazelle/pythoncan be built and testeddirectly with standard Go tooling (
go build,go test,go list) outsideBazel (#3821).
importsattribute not being deletedwhen their source files are removed
(#4282).
pip.parsecall for a Python version that has no interpreter forthe host platform is now skipped, like a version with no registered toolchain,
instead of failing the whole {obj}
pipextension. A dependency that lists,say, Python 3.9 no longer breaks every other hub on hosts that have no CPython
3.9 build, such as Windows on ARM64
(#4184).
uv.lockwhen selectingpackages and artifacts in {obj}
pip.parse(#4287).
cpon the execution platform.pip.parse(uv_lock = ...)now builds packages with a git source withpip, from aname @ git+<url>@<commit>direct reference pinned to the commituvresolved, instead of passing the uv.lock source string to the Bazeldownloader as a URL.
(#4139)
runfiles root, or
RULES_PYTHON_EXTRACT_ROOTcontains spaces(#4386).
py_library.pyi_depsbeing included in runtime output andbloating output. Type-checking only information is now in
{obj}
PyInfo.type_checking_info. Added the{obj}
--//python/config_settings:pyi_deps_to_runfilesflag to configure orrestore legacy runfile propagation if needed
(#4178).
sphinx_docs.runtargets failing to locate thesphinxbinary when defined in the root package
(#4201).
pythonmodule extension and@pythons_hubrepository no longer materializes the
@rules_pythonrepository when using--experimental_remote_repo_contents_cache(#4294).
default Python version instead of the target's Python version under Bazel 10
(#3566).
pythonextension is re-evaluated when the host OS or CPUchanges, so an output base shared between hosts no longer fails to fetch the
*_hostinterpreter repo.__pycache__symlinks in downloaded runtimes no longer end up inrunfiles, and a runtime no longer loads pyc files compiled from another
version's sources
(#4198).
lock's.runtarget foruv.lockoutputs to read and writethe lock file in the workspace source tree instead of the runfiles tree
(#4339).
lockmacro's.runtarget uses theuvcache and honorsUV_CACHE_DIRandUV_NO_CACHE. Pass--refreshto refresh cached data or--no-cacheto disable caching. Lock build actions, including those used by.update, disable theuvcache.(#4179)
ignored signals and exit status, and cleaned up temporary extraction directories.
(#3809)
{#v2-5-0-added}
Added
including free-threaded interpreters. Existing Python versions retain their
current coverage.py wheels.
py_wheelnow expands Python toolchain make variables bydefault and in
platformandpython_requires. {obj}py_runtime_pairand{obj}
current_py_toolchainnow provide version and wheel tag make variables.pip.default(unified_hub_requirements_bzl = True), which makes theunified
@pypihub generate arequirements.bzlwith the per-package macros ofa concrete hub's (
requirement,whl_requirement,data_requirementanddist_info_requirement). A repo that renames its hub away from the reservedpypiname keeps itsload("@pypi//:requirements.bzl", "requirement")usersworking, and the returned labels route through
{obj}
--@rules_python//python/config_settings:venv. Theall_*lists are notprovided, since they could only list one hub's packages; load them from a
concrete hub.
pip.default.envsubstto expand environment variables in{attr}
pip.default.index_url(#4123).
PyInfo.direct_implicit_pyc_filesand{obj}
PyExecutableInfo.venv_runfiles.pytest_test, which facilitates running of pytest tests.It supports generating multiple test targets for more than one Python version
and uses
pytest-randomlyandpytest-shard.(#3594)
{obj}
--@rules_python//python/config_settings:py_pbs_distributionflag to select which python-build-standalone archive the hermetic toolchains
use. Setting it to
install_only_strippeduses runtimes without debug symbols,which reduces runtime and zipapp size.
(#4163)
@uv//:uv, {obj}//python/uv/bin:uv, and public visibility on{obj}
//python/uv:current_toolchain(along with the$(UV)make variable) torun the configured
uvbinary directly (e.g.bazel run @rules_python//python/uv/bin:uv -- --helporbazel run @uv -- --help)(#4371).
lockmacro now works in WORKSPACE builds; set up theuvtoolchains with the new {obj}
uv_toolchains_manifestrepository rule and{obj}
uv_register_toolchainsmacro.(#1975)
{#v2-4-6}
v2.4.6Compare Source
{#v2-4-6-changed}
Changed
3.10.22,3.11.18,3.12.16,3.13.18,3.14.10, and3.15.2, and removed3.15.0pre-releasetoolchains (#4358).
{#v2-4-5}
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.